﻿using System.Web.Mvc;
using Web7.Domain;

namespace Web7.Core.ActionFilters.Authorization
{
    public class RouteValueRoleAuthorizationFilter : RouteValueAuthorizationFilter
    {
        public RouteValueRoleAuthorizationFilter(IDependencyResolver dependencyResolver)
            : base(dependencyResolver, "roles", (authorization, user, authValue) => authorization.TryCheckAccess<Entity>(authValue, user, null))
        {
        }
    }
}
